<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
	</head>
	<body>
		<div id="app">
			<button v-on:click="yy">点击我</button>
		</div>
		<script>
			let app=new Vue({
				el:"#app",
				data:{},
				methods:{ //方法
					yy:function(){
						alert("你好！");
					}
				}
			});
		</script>
	</body>
</html>
